
require.config({
	"paths":{
		"bootstrap":"../vendor/twbs/bootstrap/dist/js",
		"swal":"https://cdn.bootcss.com/limonte-sweetalert2/7.21.1/sweetalert2.all.min"
	},
	"packages": [
		{
            "name": "jquery",
            "main": "jquery.min.js"
        },
        {
            "name": "moment",
            "main": "moment.js"
        }
	],
	shim:{
		"bootstrap":{
			"deps":[
				"jquery"
			]
		}
	},
	"baseUrl": "components"
});
//解决加载顺序问题
require(["jquery"],function($){
	require(["bootstrap/bootstrap","swal","moment"],function(bootStrap,swal,moment){
		//简单处理
		$("#today").text(moment().format("YYYY年MM月DD日"));
		$("#account").text(localStorage.getItem("account"));
		$("#password").text(localStorage.getItem("password"));
	});
	
});
